set Height
Update a block's height and optionally maintain the crop. A new height of a page with page slices goes to every page slice on a horizontal axis. On a vertical axis, it goes to the last page slice. A page slice that this shrinks stops at 25 pixels at the DPI of the scene. So the page can end up higher than asked. A height of 0 or less on a page slice fails with BLOCK.PAGE_SLICE_SIZE_INVALID. If the crop is maintained, the crop values will be automatically adjusted. The content fill mode Cover is only kept if the features/transformEditsRetainCoverMode setting is enabled, otherwise it will change to Crop. If the size of a group is changed, both dimensions are modified and the aspect ratio of the group is kept. Required scope: "layer/resize"
Parameters
the block to update.
the new height of the block in its height mode, which getHeightMode returns. A SizeMode.ABSOLUTE value is in design units. A SizeMode.PERCENT value is a fraction of the height of the first parent that is not a group or a track.
whether or not the crop values, if available, should be automatically adjusted. A SizeMode.PERCENT size and a PositionMode.PERCENT left or top keep their mode.